package com.yegs.jltqc.U8Controller;

import com.yegs.jltqc.U8Service.CommonService;
import com.yegs.jltqc.U8Service.QmilcodeService;
import com.yegs.jltqc.config.Msg;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/common")
public class CommonController {

    /**
     * 来料单
     */
    private static String QC_INCOME = "qc_income";

    @Autowired
    private CommonService commonService;

    @GetMapping("/findAll")
    public Msg findAll(@RequestParam("qcIncome") String table){
        return Msg.success("data",commonService.findAll(QC_INCOME));
    }

}
